package fr.upmc.tps.mdoc.domain;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnector {

	public static Connection createConnection() {
		try {
			Class.forName("com.mysql.jdbc.Driver").newInstance();

			return DriverManager.getConnection("jdbc:mysql://localhost/jee",
					"root", "root");
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		} catch (Exception t) {
			t.printStackTrace();
			return null;
		}
	}

}
